package Lemon.p5;

import org.apache.commons.io.FileUtils;
import java.io.File;

public class Main {
    public static void main(String[] args) {
        try {
            File directory = new File("C:/test");
            if (directory.exists() && directory.isDirectory()) {
                long size = FileUtils.sizeOfDirectory(directory);
                System.out.println("Size: " + size + " bytes");
            } else {
                System.err.println("Directory does not exist or is not a valid directory.");
            }
        } catch (Exception e) {
            System.err.println("Error: " + e.getMessage());
        }
    }
}
